package com.summer.bilibili.service.impl;

import com.summer.bilibili.domain.system.SysDictData;
import com.summer.bilibili.mapper.SysDictDataMapper;
import com.summer.bilibili.service.SysDictDataService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
@RequiredArgsConstructor
public class SysDictDataServiceImpl extends BaseServiceImpl<SysDictData, SysDictDataMapper > implements SysDictDataService {
    @Override
    public List< SysDictData > getDictData( String dictType) {
        return wrapper()
                .eq(SysDictData::getDictType, dictType)
                .orderByAsc(SysDictData::getDictSort)
                .list(SysDictData.class);
    }
}
